package com.ruoyi.system.domain.webgroup;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**打卡签到签退表*/
public class Clock extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**打卡表的主键自增*/
    private Integer clockId;

    /**日期类处理方式*/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "打卡时间")
    private Date clockDatetime;

    /**打卡状态码（签到-->0 签退-->1）*/
    @Excel(name = "打卡状态" , readConverterExp = "0=签到,1=签退")
    private Integer clockState;

    /**每天打卡说明*/
    @Excel(name = "打卡说明")
    private String clockIllustrate;

    /**用户id*/
    @Excel(name = "用户id")
    private Integer userId;

    /**用户详细信息*/
    private SysUser sysUser;

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }


    public Clock(Integer clockId, Date clockDatetime, Integer clockState, String clockIllustrate, Integer userId) {
        this.clockId = clockId;
        this.clockDatetime = clockDatetime;
        this.clockState = clockState;
        this.clockIllustrate = clockIllustrate;
        this.userId = userId;
    }

    public Clock() {
    }

    public Integer getClockId() {
        return clockId;
    }

    public void setClockId(Integer clockId) {
        this.clockId = clockId;
    }

    public Date getClockDatetime() {
        return clockDatetime;
    }

    public void setClockDatetime(Date clockDatetime) {
        this.clockDatetime = clockDatetime;
    }

    public Integer getClockState() {
        return clockState;
    }

    public void setClockState(Integer clockState) {
        this.clockState = clockState;
    }

    public String getClockIllustrate() {
        return clockIllustrate;
    }

    public void setClockIllustrate(String clockIllustrate) {
        this.clockIllustrate = clockIllustrate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
